home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Subject: Re: can`t get system call
- Message-ID: <Dpotwv.6K7@rci.ripco.com>
- X-Nntp-Sender: mambuhl@cook.ripco.com
- Sender: usenet@rci.ripco.com (Net News Admin)
- Organization: Ripco Internet BBS Chicago
- Date: Thu, 11 Apr 1996 07:53:19 GMT
-
- merv@snowone.demon.co.uk (snowone) in
- <828623397.22462@snowone.demon.co.uk> asks:
-
- >can anyone help me. I have msvc version one and i'm trying to get
- >this program working
-
- >#include <process.h>
- why are you including this non-standard header?
- system() is prototyped in stdlib.h
-
- >void main()
- why are you trying to confuse the poor compiler?
- main returns an int.
-
- >{
- > system("dir");
- >}
-
- >Will not compile. Says on linking _system is undeclared
- >(note at first would not compile until #undef _WINDOWS)
-
- Since _WINDOWS is not #defined here and should not
- be defined in stdlib.h, this is a red herring.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-